<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <title>Hello World!</title>
</head>

<body>

<h1 th:inline="text">Hello.v.2</h1>

<p th:text="${hello}"></p>
<p th:text="${obj.data}"></p>
<p th:text="${obj.result}"></p>

<p th:text="${session.haha}"></p>
<p th:text="${#request.getContextPath()}"></p>

<a href="demo2.html"
   th:href="@{http://www.baidu.com}">view</a>


导入片段：
<div th:insert="helloHtml :: copy"></div>

<div th:replace="helloHtml :: copy"></div>

<div th:include="helloHtml :: copy"></div>

<div th:fragment="copy">
    the content of footer
</div>


<div th:if="${obj.result} != 'SUCCESS'">
    你好
</div>
<div th:if="${obj.result} == 'SUCCESS'">
    你不好
</div>

<div th:if="${obj.data.totalRecord &lt 1}">
    嘿嘿嘿
</div>


<table>
    <tr>
        <th>city</th>
        <th>code</th>
        <th>country</th>
        <th>goodQueryId</th>
        <th>lat</th>
        <th>lng</th>
        <th>phone</th>
        <th>productId</th>
        <th>queryDate</th>
    </tr>
    <tr th:each="prod : ${obj.data.rows}">
        <td th:text="${prod.city}">Onions</td>
        <td th:text="${prod.code}">2.41</td>
        <td th:text="${prod.country}">2.41</td>
        <td th:text="${prod.goodQueryId}">2.41</td>
        <td th:text="${prod.lat}">2.41</td>
        <td th:text="${prod.lng}">2.41</td>
        <td th:text="${prod.phone}">2.41</td>
        <td th:text="${prod.productId}">yes</td>
        <td >"[(${prod.queryDate})]"</td>
    </tr>
</table>
<p>Hello, <span th:text="${obj.data.totalRecord}">Sebastian</span>!</p>
<p>The message is "[(${obj.data.pageIndex})]"</p>
<p>The message is <b th:text="${#dates.format(#dates.createNow(),'yyyy-MM-dd HH:mm:ss')}"></b></p>
</body>

</html>